package Test;

/**
 * @ClassName Main7
 * @Description
 * @Company inspur
 * @Author Kevin
 * @Date 2020/8/2 20:51
 * @Version 1.0
 */
import java.util.*;


public class Main7 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[][] nums = new int[N][6];
        int M;

        for(int i= 0; i < N; i++) {
            for(int j = 0; j < 6; j++) {
                nums[i][j] = sc.nextInt();
            }
        }

        System.out.println(1);
        System.out.println(N);
    }

}